import { Column, Entity } from "typeorm";
import { BaseEntity } from "../../base/entity/base";

@Entity('finance_wallet', { comment: '财务钱包' })
export class FinanceWalletEntity extends BaseEntity {

    @Column({ comment: '关联ID', unique: true, nullable: false })
    relatedId: number

    @Column({ comment: '关联类型', nullable: false })
    relatedType: 'user' | 'provider'

    @Column({ comment: '钱包余额', type: 'decimal', precision: 10, scale: 2, nullable: false })
    balance: number

}









